﻿using UnityEngine;
using System.Collections;

public class GetRandom :MonoBehaviour{

    public static GetRandom _instance;
    string str = "123456789ABCDEFGHGKLMNPQRSTUVWXYZ";
    int i,j,n;
    string ss;
    void Start ()
    {
        _instance = this;
    }

    string GetNumber()
    {
        i = Random.Range(1,10);
        return i.ToString();
    }

    public string GetNumber8()
    {
        ss = null;
        for (j = 0; j < 8; j++)
        {
            ss += GetNumber();
        }
        return ss;
    }

    public string GetNumber6()
    {
        ss = null;
        for (j = 0; j < 6; j++)
        {
            ss += GetNumber();
        }
        return ss;
    }
    public string GetCheckid8()
    {
        n = str.Length;
        ss = null;
        for (j = 0; j < 8; j++)
        {
            i = Random.Range(0, n);
            ss += str.Substring(i, 1);
        }
        return ss;
    }




}
